package com.mfs.manager.mapper;

import com.mfs.manager.mapper.dbobj.PortUsed;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface PortUsedMapper {
    int insert(PortUsed portUsed);

    PortUsed queryPortUsedInfoByServerInfoAndPortForUpdate(String outIp, String ip, int port);

    int updateChannelNumById(long id, int channelNum);
    
    int removePortUsedById(long id);
    
    int removePortUsedByServerId(long id);
}
